//
//  ST_PairsTransition.swift
//  btvideo
//
//  Created by mac on 2020/1/2.
//  Copyright © 2020 JarvanZhang. All rights reserved.
//

import UIKit
import SwifterSwift

class ST_PairsTransition: NSObject ,UIViewControllerTransitioningDelegate{

    var operationView:ST_PairsShareParticularView?
    
    func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
        
        guard let v = operationView else { return nil }
        
        return ST_PairsPresentAnimator.init(sharedPlayView: v)
    }
    
    
    func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
        
        guard let v = operationView else { return nil }
        
        return ST_PairsDismissAnimator.init(sharedPlayView: v)
    }
    
    // IMPORTANT: Must set modalPresentationStyle to `.custom` for this to be used.
    func presentationController(forPresented presented: UIViewController, presenting: UIViewController?, source: UIViewController) -> UIPresentationController? {
        return ST_PairsPresentationController(presentedViewController: presented, presenting: presenting)
    }
}



protocol ST_PairsTransitionProtocol:NSObjectProtocol {
    func present_start_cell()->UICollectionViewCell?
}

